INSERT
INTO
  C1_ENTITY_TREE T
  (
<#assign prefixName=' '>
<#if (insert__beginDate??) && (insert__beginDate__value??)>
  ${prefixName} BEGIN_DATE
	<#assign prefixName=','>
</#if>
<#if (insert__endDate??) && (insert__endDate__value??)>
  ${prefixName} END_DATE
	<#assign prefixName=','>
</#if>
<#if (insert__entityCode??) && (insert__entityCode__value??)>
  ${prefixName} ENTITY_CODE
	<#assign prefixName=','>
</#if>
<#if (insert__entityId??) && (insert__entityId__value??)>
  ${prefixName} ENTITY_ID
	<#assign prefixName=','>
</#if>
<#if (insert__entityName??) && (insert__entityName__value??)>
  ${prefixName} ENTITY_NAME
	<#assign prefixName=','>
</#if>
<#if (insert__entityParentCode??) && (insert__entityParentCode__value??)>
  ${prefixName} ENTITY_PARENT_CODE
	<#assign prefixName=','>
</#if>
<#if (insert__entityParentId??) && (insert__entityParentId__value??)>
  ${prefixName} ENTITY_PARENT_ID
	<#assign prefixName=','>
</#if>
<#if (insert__entityParentName??) && (insert__entityParentName__value??)>
  ${prefixName} ENTITY_PARENT_NAME
	<#assign prefixName=','>
</#if>
<#if (insert__id??) && (insert__id__value??)>
  ${prefixName} ID
	<#assign prefixName=','>
</#if>
<#if (insert__treeCode??) && (insert__treeCode__value??)>
  ${prefixName} TREE_CODE
	<#assign prefixName=','>
</#if>
<#if (insert__treeId??) && (insert__treeId__value??)>
  ${prefixName} TREE_ID
	<#assign prefixName=','>
</#if>
<#if (insert__treeName??) && (insert__treeName__value??)>
  ${prefixName} TREE_NAME
	<#assign prefixName=','>
</#if>
<#if (insert__typeId??) && (insert__typeId__value??)>
  ${prefixName} TYPE_ID
	<#assign prefixName=','>
</#if>
  )
  VALUES
  (
<#assign prefixName=' '>
<#if (insert__beginDate??) && (insert__beginDate__value??)>
  ${prefixName} :insert__beginDate__value
	<#assign prefixName=','>
</#if>
<#if (insert__endDate??) && (insert__endDate__value??)>
  ${prefixName} :insert__endDate__value
	<#assign prefixName=','>
</#if>
<#if (insert__entityCode??) && (insert__entityCode__value??)>
  ${prefixName} :insert__entityCode__value
	<#assign prefixName=','>
</#if>
<#if (insert__entityId??) && (insert__entityId__value??)>
  ${prefixName} :insert__entityId__value
	<#assign prefixName=','>
</#if>
<#if (insert__entityName??) && (insert__entityName__value??)>
  ${prefixName} :insert__entityName__value
	<#assign prefixName=','>
</#if>
<#if (insert__entityParentCode??) && (insert__entityParentCode__value??)>
  ${prefixName} :insert__entityParentCode__value
	<#assign prefixName=','>
</#if>
<#if (insert__entityParentId??) && (insert__entityParentId__value??)>
  ${prefixName} :insert__entityParentId__value
	<#assign prefixName=','>
</#if>
<#if (insert__entityParentName??) && (insert__entityParentName__value??)>
  ${prefixName} :insert__entityParentName__value
	<#assign prefixName=','>
</#if>
<#if (insert__id??) && (insert__id__value??)>
  ${prefixName} :insert__id__value
	<#assign prefixName=','>
</#if>
<#if (insert__treeCode??) && (insert__treeCode__value??)>
  ${prefixName} :insert__treeCode__value
	<#assign prefixName=','>
</#if>
<#if (insert__treeId??) && (insert__treeId__value??)>
  ${prefixName} :insert__treeId__value
	<#assign prefixName=','>
</#if>
<#if (insert__treeName??) && (insert__treeName__value??)>
  ${prefixName} :insert__treeName__value
	<#assign prefixName=','>
</#if>
<#if (insert__typeId??) && (insert__typeId__value??)>
  ${prefixName} :insert__typeId__value
	<#assign prefixName=','>
</#if>
  )